﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Components.ETL
{
    public class CitationParserComponent : WorkflowComponentBase
    {
        public CitationParserComponent()
            : base()
        {
            this.ComponentName = "Citation parser";
            this.Description = "Extract titla, author, journal, etc from citation text";
            this.ComponentIconName = "Journal2.png";
            this.ComponentImageName = "Journal2.png";
            this.ComponentCategory = "ETL";

            this._Instruction = new CitationParserInstruction(
                Guid.Empty, Guid.Empty,
                string.Empty, string.Empty, string.Empty, string.Empty,
                string.Empty, string.Empty, string.Empty, string.Empty,
                string.Empty, string.Empty, string.Empty, string.Empty,
                string.Empty, string.Empty,
                CitationParserAlgorithm.DecisionTree);
            this._Output = new CitationParserOutput(Guid.Empty, Guid.Empty, 0, 0);
        }

        #region Overrides of WorkflowComponentBase

        private CitationParserInstruction _Instruction;
        public override InstructionBase Instruction
        {
            get
            {
                return _Instruction;
            }
            set
            {
                _Instruction = (CitationParserInstruction)value;
            }
        }

        private CitationParserOutput _Output;
        public override ResultBase Output
        {
            get
            {
                return _Output;
            }
            set
            {
                _Output = (CitationParserOutput)value;
            }
        }

        #endregion
    }
}
